package com.guoxin.facade;

/**
 * @author guoxin
 * @date 2019年8月26日
 */
public class DVDPlayer {
	private DVDPlayer() {
	}

	private static class DVDPlayerHandler {
		private static DVDPlayer dvdPlayer = new DVDPlayer();
	}

	public static DVDPlayer getInstance() {
		return DVDPlayerHandler.dvdPlayer;
	}

	public void on() {
		System.out.println(" dvd on ");
	}

	public void off() {
		System.out.println(" dvd off ");
	}

	public void play() {
		System.out.println(" dvd is playing ");
	}

	public void pause() {
		System.out.println(" dvd pause ..");
	}
}
